﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class TimKiem : System.Web.UI.Page
{
    DataTable dt = new DataTable();
    KetNoi obj = new KetNoi();
    protected void Page_Load(object sender, EventArgs e)
    {
        
		if (!IsPostBack)
		{
            LoadRepeater();
		}
    }

    protected void LoadRepeater()
    {
        txtTimKem.Text = Request.QueryString["tukhoa"];
        dt = obj.TimKiemDT(txtTimKem.Text);
        Repeater5.DataSource = dt;
        Repeater5.DataBind();
    }
	protected void btnTim_Click(object sender, EventArgs e)
    {
        
        dt = obj.TimKiemDT(txtTimKem.Text);
        Repeater5.DataSource = dt;
        Repeater5.DataBind();
        
	}
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
    }
}
